package com.gxwy.yonghuziliao.form;

import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import com.gxwy.zizhanghu.form.ZiZhangHu;

/**
 * Yonghuziliao entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "yonghuziliao", catalog = "test")
public class YongHuZiLiao {

	// Fields

	private Integer id;
	private String yinhangzhanghao;
	private String yinhangmima;
	private String zhengjianleixing;
	private String zhengjianhaoma;
	private String zhanghubieming;
	private String zhanghuleixing;
	private String zhanghuhuming;
	private String kaihujigou;
	private String jinjiguashi;
	private Set<ZiZhangHu> zizhanghus = new HashSet<ZiZhangHu>(0);

	// Constructors

	/** default constructor */
	public YongHuZiLiao() {
	}


	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "yinhangzhanghao", length = 128)
	public String getYinhangzhanghao() {
		return this.yinhangzhanghao;
	}

	public void setYinhangzhanghao(String yinhangzhanghao) {
		this.yinhangzhanghao = yinhangzhanghao;
	}

	@Column(name = "yinhangmima", length = 16)
	public String getYinhangmima() {
		return this.yinhangmima;
	}

	public void setYinhangmima(String yinhangmima) {
		this.yinhangmima = yinhangmima;
	}

	@Column(name = "zhengjianleixing", length = 16)
	public String getZhengjianleixing() {
		return this.zhengjianleixing;
	}

	public void setZhengjianleixing(String zhengjianleixing) {
		this.zhengjianleixing = zhengjianleixing;
	}

	@Column(name = "zhengjianhaoma", length = 128)
	public String getZhengjianhaoma() {
		return this.zhengjianhaoma;
	}

	public void setZhengjianhaoma(String zhengjianhaoma) {
		this.zhengjianhaoma = zhengjianhaoma;
	}

	@Column(name = "zhanghubieming", length = 128)
	public String getZhanghubieming() {
		return this.zhanghubieming;
	}

	public void setZhanghubieming(String zhanghubieming) {
		this.zhanghubieming = zhanghubieming;
	}

	@Column(name = "zhanghuleixing", length = 16)
	public String getZhanghuleixing() {
		return this.zhanghuleixing;
	}

	public void setZhanghuleixing(String zhanghuleixing) {
		this.zhanghuleixing = zhanghuleixing;
	}

	@Column(name = "zhanghuhuming", length = 128)
	public String getZhanghuhuming() {
		return this.zhanghuhuming;
	}

	public void setZhanghuhuming(String zhanghuhuming) {
		this.zhanghuhuming = zhanghuhuming;
	}

	@Column(name = "kaihujigou", length = 128)
	public String getKaihujigou() {
		return this.kaihujigou;
	}

	public void setKaihujigou(String kaihujigou) {
		this.kaihujigou = kaihujigou;
	}

	@Column(name = "jinjiguashi", length = 16)
	public String getJinjiguashi() {
		return this.jinjiguashi;
	}

	public void setJinjiguashi(String jinjiguashi) {
		this.jinjiguashi = jinjiguashi;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "yonghuziliao")
	public Set<ZiZhangHu> getZizhanghus() {
		return this.zizhanghus;
	}

	public void setZizhanghus(Set<ZiZhangHu> zizhanghus) {
		this.zizhanghus = zizhanghus;
	}

}